<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>service</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">service</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/inTouch/loginDisplay.do</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>userName</td>
	<td>chris</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>password</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Services</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Add Service']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>messageTitle</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>messageTitle</td>
	<td>Testing123 Service123</td>
</tr>
<tr>
	<td>type</td>
	<td>messageTitle</td>
	<td>Testing123 Service123</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>description</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>description</td>
	<td>Description for Testing Service123</td>
</tr>
<tr>
	<td>type</td>
	<td>dateAndTime</td>
	<td>11/11/2007 10:30</td>
</tr>
<tr>
	<td>select</td>
	<td>speakerId</td>
	<td>label=Enzo Maisano</td>
</tr>
<tr>
	<td>type</td>
	<td>serviceIncome[0].amount</td>
	<td>5000</td>
</tr>
<tr>
	<td>type</td>
	<td>serviceIncome[1].amount</td>
	<td>504</td>
</tr>
<tr>
	<td>type</td>
	<td>servicePeople[0].number</td>
	<td>300</td>
</tr>
<tr>
	<td>type</td>
	<td>servicePeople[1].number</td>
	<td>220</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Save']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=View</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Testing Service123</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>11/11/2007 10:30</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Description for Testing Service123</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Enzo Maisano</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>300</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>220</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>5000.0</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>504.0</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Edit']</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>sermonNotes</td>
	<td>C:\Projects\inTouch\src\test\selenese-tests\sermonNotes.doc.doc</td>
</tr>
<tr>
	<td>click</td>
	<td>sermonNotes</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>runningSheet</td>
	<td>C:\Projects\inTouch\src\test\selenese-tests\runningSheet.doc.doc</td>
</tr>
<tr>
	<td>click</td>
	<td>runningSheet</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Save']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=View</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='View']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='View' and @type='button' and @onclick="location.href='viewFile.do?fileType=3&id=2'"]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Edit']</td>
	<td></td>
</tr>
<tr>
	<td>addSelection</td>
	<td>availableEvents</td>
	<td>label=Test Invalid date</td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='ADD']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Save']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//td[4]/a/img</td>
	<td></td>
</tr>
<tr>
	<td>addSelection</td>
	<td>eventIds</td>
	<td>label=Test Invalid date</td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>//option[@value='2']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Back']</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=View</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Delete']</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete this Service?</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
